<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="http://displaytag.sf.net" prefix="display"%>

<!-- becomes the css class of the li element -->
<c:set var="tab_routes" value="active" scope="request"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Routes</title>
	</head>

	<body>

		<display:table uid="route" name="${routes}" defaultsort="1"
			       defaultorder="ascending" pagesize="10" class="dt">
			<display:column value="${route.ship.name}" title="Ship"></display:column>
			<display:column property="departureDate" title="Departure Date"
					maxLength="10" />
			<display:column property="estimatedArrivalDate"
					title="Estimated Arrival Date" maxLength="10" />
			<display:column property="arrivalDate"
					title="Arrival Date" maxLength="10" />
			<display:column property="transportValue" title="Transport Value" maxLength="10"/>
			<display:column title="Harbours" maxLength="200">
				<c:forEach var="harbour" items="${route.harbours}">
					<c:out value="${harbour.name}"/>&nbsp;
				</c:forEach>
			</display:column>
			<display:setProperty name="basic.empty.showtable" value="true" />
			<display:setProperty name="paging.banner.group_size" value="10" />
			<display:setProperty name="paging.banner.onepage"
					     value="<span class='pagelinks'>&nbsp;</span>" />
		</display:table>

	</body>
</html>
